#ifndef READCOILREGISTERCMD_H
#define READCOILREGISTERCMD_H

#include <QObject>
#include "BaseModbusCmd.h"
#include "Protocol/ModbusProtocol.h"
#include "DataType/ModbusControlStruct.h"

class ReadCoilRegisterCmd : public BaseModbusCmd
{
    Q_OBJECT
public:
    enum{FunctionCode = ModbusProtocol::ReadCoilRegister};

    Q_INVOKABLE explicit ReadCoilRegisterCmd(QObject *parent = 0);

    Package toPackage();
    void unPackage(Package package);

};

#endif // READCOILREGISTERCMD_H
